Repository navigation
chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads - #37230
Conversation
…main no longer has A reproduction script diffs the package's published catalogues at the release tag against a ref, and one major changeset lists every key it reports under "Removed translation keys". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
…form check-ui-root-lookups refuses a `--show-toplevel` lookup and a root-relative `REF:PATH` under ui/. git now runs in the package directory and reads `REF:./PATH`; the output is byte-identical. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
…ing major marker `pnpm changeset pre enter next` wrote .changeset/pre.json as committed. The @objectstack/spec major marker gives the protocol lockstep its pending spec major; the i18n changeset notes the two majors give one 19.0.0. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
…8n-removed-keys-major
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
席位意见:通过。 Hand-off · 2026-11-25T10:52Z · @os-zhuang — PR #37230 (card #37223) is ready for you. It enters Changesets pre mode ( |
Fixes #37223
Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no file under skills/ or content/docs names any of the 67 retired keys (git grep, each key)
维护者速读
allow-major标签,作为你对 19.0.0 大版本的人工确认;在加标签之前,「Check Changeset」因级别检查(Metadata-protocol: none旁有major)保持红色,属预期,门禁本身不改。② 由你亲自合并本单(和上次开 18 一样,席位只审不合)。What changes
.changeset/pre.json, written bypnpm changeset pre enter next(@changesets/cli3.0.3) and committed as the tool wrote it:{ "mode": "pre", "tag": "next" }. ⛔ Nochangeset versionoutput is committed, and nothing was published..changeset/37223-v19-line-opens.md, front matter"@objectstack/spec": major: the v19 line's opening note (rulings 7153326968 and 7153441862),Clause-②: no, and its ADR-0087not-required (no-migration-prescription)disposition, in the form the v18 opening (chore(release): enter Changesets pre mode (next) with onemajormarker, so v18 opens at 18.0.0-next.0 #22084) used. Why spec: the protocol lockstep admitsPROTOCOL_VERSIONone major ahead only in pre mode WITH a pending@objectstack/specmajor, andscripts/sync-protocol-version.mjsderives the protocol version from spec's major..changeset/37223-i18n-removed-released-keys.md,'@object-ui/i18n': major: the BREAKING banner, its own ADR-0087 disposition, and the 「Removed translation keys」 list (67 keys, each once, with its locales). Two majors in onefixedgroup still give one 19.0.0; the changeset says so.ui/packages/i18n/scripts/released-keys-removed.mjs(zero third-party deps): reads the package's published catalogues out of git at the tag@object-ui/i18n@18.6.0and at a ref (defaultorigin/main), and prints every key the tag has that the ref lacks, grouped by namespace, with the locales it was removed from. Which files are catalogues is read from the package:package.jsonexports, the all-packs doorsrc/locales/index.ts, and each non-pack-shaped namespace'sindex.ts(studio).No code change, no key restored, no
PROTOCOL_VERSIONedit, noallow-majorlabel, no edit to.changeset/config.json, to either changeset guard, or torelease.yml.Reproduction
The 35 Studio keys are the ones the card expected (#36501, #36652). The 32 language-pack keys are extra; some of them are also named in earlier pending
patchchangesets, and this one lists the whole 18.6.0 set once for the major's notes. Keys that the open PRs #37169, #37166 and #37168 remove are still on main, so they are not reported or declared here. No non-test file underui/,apps/orpackages/quotes any of the 67 keys.The no-major guard reads
pre.jsonfrom the head checkoute43e989948node scripts/check-changeset-no-major.mjs --base origin/mainChangesets is in pre-release mode (tag: next) — major bumps are the expected product of an RC window; skipping the no-major guard..changeset/pre.jsondeleted from the working tree onlyThis PR introduces changeset(s) that declare a major bump.git checkout HEAD -- .changeset/pre.jsongit diff HEADempty (0 bytes), blob hash equals the HEAD blob, guard exit 0 againPins (throwaway detached worktree at
e43e989948, never committed, removed after)pnpm changeset versionexits 0. All 112fixed-group members read19.0.0-next.0.pre.jsonis unchanged.packages/spec/CHANGELOG.mdandui/packages/i18n/CHANGELOG.mdeach open## 19.0.0-next.0/### Major Changes.node scripts/sync-protocol-version.mjs(the rootversionscript's next step) rewritesPROTOCOL_VERSIONinpackages/spec/src/kernel/protocol-version.ts:PROTOCOL_VERSION 18.0.0 → 19.0.0 (lockstep with @objectstack/spec@19.0.0-next.0).protocol-version.test.tson that tree:Test Files 1 passed (1),Tests 3 passed (3).release.ymlin pre mode:nextgets the prerelease,lateststays 18.xA reading of the files; nothing edited, nothing run.
publish, stepPublish to npm + push version tagsrunspnpm run release, which ends inscripts/release-publish.sh, which runschangeset publishwith no--tag.@changesets/cli3.0.3getReleaseTag(dist/getPublishPlan.mjs:599-601): with a pre state and no--tag, the tag ispreState.tag=next, unless every published version of a package is already anextprerelease.dist/publish.mjsrefuses a custom tag in pre mode.npm viewtoday:@objectstack/specand@object-ui/i18nreadlatest=18.6.0,next=0.0.0-next-20261125013212(a snapshot, whose prerelease id is notnext), so neither is "only-pre". Each publishes19.0.0-next.0tonext;lateststays18.6.0.Acceptance notes
check-changeset-no-major.mjs's level axis refusesMetadata-protocol: nonebeside any entry atminoror above (verdictnone-minor). It runs whatever the pre mode is, and onlyallow-majorskips the step. Measured ate43e989948with apull_requestpayload carrying this body's two lines: the no-major guard is exempt (pre mode), and the level axis exits 1. The v18 opening passed because its body had noMetadata-protocol:line. This PR changes neither the gate nor the declaration.release.yml'sversion-prvalidation marks a pass that rewritespackages/spec/src/kernel/protocol-version.tsas UNVALIDATED and refuses it, because the example apps declareengines.protocol: '^18'(examples/app-crm,app-showcase,app-todo) and the ADR-0087 D1 handshake would refuse them under 19. So the version step would sync the constant, but that lane will not carry it:PROTOCOL_VERSION→ 19.0.0 still needs its own reviewed PR (19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229), which should also move the example apps'engines.protocol. With this PR's pre mode and pending spec major, the protocol lockstep admits the constant one major ahead.pnpm check:pm-dispatch-gatesis green withpre.jsontracked (2313 cases pass), and the chore(release): enter Changesets pre mode (next) with onemajormarker, so v18 opens at 18.0.0-next.0 #22084 amendment (CONSUMED_PRERELEASE_EXCLUDEDinscripts/check-adr-0087-registration.mjs) is still on main. No gate script is edited.next) with onemajormarker, so v18 opens at 18.0.0-next.0 #22084); seats review only. The PR stays draft.Verification
Two-minute check:
node scripts/check-changeset-no-major.mjs --base origin/mainprints the pre-mode exemption line and exits 0;node ui/packages/i18n/scripts/released-keys-removed.mjsprints67on its first line.Read first:
.changeset/pre.jsonand.changeset/37223-v19-line-opens.md: the line opening..changeset/37223-i18n-removed-released-keys.md: the list.ui/packages/i18n/scripts/released-keys-removed.mjs,discover().Local gates at e43e989: 36 commands, all exit 0
node scripts/check-governed-merges.mjs --pr 37230:0 of 4 path(s) hit the register·NOT governed·368 changed line(s) ≤ 3000.Dogfood battery (
!title):Test Files 487 passed | 3 skipped (490),Tests 4128 passed | 68 skipped (4196), lock VERDICT command-exit 0, measured ate90f9aa1b9. The commits after it add.changeset/files and rework a script nothing imports.Generated by Claude Code